package com.niit.activity4_6.service.impl;
import com.niit.activity4_6.mapper.EmployeeMapper;
import com.niit.activity4_6.model.Employee;
import com.niit.activity4_6.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class EmployeeServiceImpl implements EmployeeService {

    @Autowired
    EmployeeMapper employeeMapper;

    public Employee findOneById(Integer id) {
        return employeeMapper.findOneById(id);
    }

    @Override
    public List<Employee> findAll() {
        return employeeMapper.findAll();
    }
}